// src/renderer/utils/webSocket.ts
import { onMounted, ref, onBeforeUnmount, watch } from "vue";
import { useWebSocket } from "@vueuse/core";
const { status, data, send, open, close } = useWebSocket(
    "ws://127.0.0.1:8092/websocket/1",
    {
        autoReconnect: true,
        heartbeat: {
            message: JSON.stringify({ serviceType: "ping" }),
            interval: 30000,
            pongTimeout: 30000,
        },
    }
);

onMounted(() => {
    send('初始连接ws')
})
export default {
    aa
};